package design.Day03;

/**
* @description: 摩卡
* @author: wangjun
* @create: 2022-01-13
*/
public class Mocha extends CondimentDecorator {

    Beverage beverage;

    public Mocha(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return this.beverage.getDescription() + ",摩卡";
    }

    @Override
    public int cost() {
        return this.beverage.cost() + 20;
    }
}
